<?php

namespace app\admin\validate\personal;

use think\Validate;

class Black extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'ip' => 'require|ip',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'ip.require' => '请填写ip',
        'ip.ip' => '请填写正确ip'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['ip'],
        'edit' => ['ip'],
    ];
    
}
